package org.netty.push.client.message.handler;

import org.netty.push.core.proto.DataRequestMsg;
import org.netty.push.core.proto.handler.MessageHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.netty.channel.ChannelHandlerContext;

public class DataRequestHandler implements MessageHandler<DataRequestMsg> {
	private static Logger logger=LoggerFactory.getLogger(DataRequestHandler.class);

	@Override
	public void handle(ChannelHandlerContext ctx, DataRequestMsg msg) {
		logger.info("DataRequestMsg id is {}",msg.getId());
	}

	@Override
	public boolean supported(Object msg) {
		return DataRequestMsg.class.isAssignableFrom(msg.getClass());
	}

}
